@import "../../../node_modules/bootstrap/less/bootstrap";
@import "../../../node_modules/bootstrap/less/theme";
@import "color";
@import "eui";
@import "../../../node_modules/swiper/dist/css/swiper.css";
@import "common";

body, button, input, select, textarea, code {
  font: 12px/1.5 "Microsoft Yahei","微软雅黑",verdana
}
header {
  background-color: #fff;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, .2);
  border-bottom: 1px solid #e8e8e8;
  .header-top {
    width: 1090px;
    margin: 0 auto;
    .header-a-logo {
      color: @greenColor;
      font-size: 36px;
      height: 60px;
      line-height: 60px;
    }
    .header-right {
      float: right;
      width: 400px;
      margin-top: 60px;
      .right-menu {
        .menu-item {
          float: right;
          width: 32px;
          text-align: center;
          font-size: 16px;
          margin: 0 15px;
          i {
            font-size: 24px;
          }
          span {
            color: @greenColor;
          }
        }
      }
    }
  }

}
.bg{
  background-color: rgba(0,0,0,0.3);
  z-index: 99999;
  height: 100%;
  width: 100%;
}
.newCates {
  margin-top: 60px;
}
.lazyload{
  background: url('../images/loading.gif') center center no-repeat #f4f4f4;
  color: #f4f4f4;
}
.newCate {
  .banner {
    margin-bottom: 20px;
  }
  > .hd {
    margin-bottom: 20px;
    line-height: 1;
    height: 28px;
    &:after {
      content: " ";
      display: table
    }
    &:before {
      content: " ";
      display: table
    }
    .name {
      float: left;
      margin-right: 10px;
      font-size: 28px;
      font-weight: 700;
    }
  }
  > .bd {
    width: 1090px;
    overflow: hidden;
  }
  .left {
    float: left
  }
  .right {
    float: right;
    nav {
      float: left
    }
    .getMore {
      display: inline-block;
      font-size: 14px;
      padding-left: 30px;
      margin-top: 14px
    }
    .subCateList {
      font-size: 14px;
      padding-top: 14px;
      .item{
        margin-left: 5px;
        margin-right: 5px;
      }
    }
  }

}


.g-bd, .g-bd-list {
  z-index: 1;
  position: relative;
  padding-bottom: 80px;
}

.goodsArea {

  position: relative;
  background-color: #fff;
  margin-top: 20px;
}

.sortbar {
  margin-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
  overflow: hidden;
  padding: 0 20px;
  .category, .manufacture {
    overflow: hidden;
    line-height: 1;
    padding-top: 20px;
    .name {
      font-size: 14px;
      color: #999;
      float: left;
      margin-right: 22px;
    }
    .categoryItem {
      float: left;
      margin-right: 30px;
      margin-bottom: 16px;
      font-size: 14px;
    }
    .categoryGroup {
      overflow: hidden;
      float: left;
      margin-bottom: 4px;
    }
  }
  .active {
    color: @greenColor;
  }
  .active, .sorts {
    .priceSure {
      .reset {
        &:hover {
          color: @greenColor;
        }
      }
    }
  }
  .sorts {
    overflow: hidden;
    padding: 20px 0;
    line-height: 1;
    border-top: 1px dashed #dedede;
    position: relative;
    .name {
      font-size: 14px;
      color: #999;
      margin-right: 22px;
    }
    .sort {
      margin-right: 30px;
      font-size: 14px;
    }
    .sort-price .icon {
      display: inline-block;
      margin-left: 10px;
      vertical-align: middle;
      margin-top: -2px;
    }
  }

}

.content, .focusSlick, .goodsArea, .slick-list {
  overflow: hidden;
}

.itemList {
  margin-right: -10px;
  .item {
    float: left;
    margin-right: 10px;
    margin-bottom: 50px;
  }
}
.goods-detail{
  width: 800px;
  margin: auto;
}
.goods-header {
  overflow: hidden;
  .goods-picture, .goods-info {
    width: 50%;
    float: left;
  }
  .goods-picture {
    .play {
      width: 350px;
      height: 435px;
      font: 12px Arial;
    }
    .big_pic {
      width: 350px;
      height: 350px;
      overflow: hidden;
      position: relative;
      line-height: 350px;
      border: 1px solid #eee;
      img{
        max-width: 100%;
        vertical-align: middle;
      }
    }
    .small_pic {
      width: 350px;
      height: 70px;
      position: relative;
      top: 20px;
      overflow: hidden;
      .small_pic ul {
        height: 60px;
        position: absolute;
        top: 0;
        left: 0;
        width: 350px;
      }
      li {
        width: 62px;
        height: 62px;
        float: left;
        border: 1px solid #e8e8e8;
        margin-right: 10px;
        cursor: pointer;
        img {
          width: 62px;
          height: 62px;
        }
        &:last-child{
          margin-right: 0px;
        }
      }
      .active {
        border: 2px solid @greenColor;
        img{
          width: 58px;
          height: 58px;
        }
      }
    }
  }
  .goods-info {
    padding-left: 40px;
    .goods-price {
      margin-top: 20px;
      font-size: 16px;
      color: #bfbfbf;
      .rmb {
        font-size: 16px;
        color: @redColor;
      }
      .price {
        font-size: 24px;
        line-height: 30px;
        margin-left: 2px;
        color: @redColor;
      }
    }
    .score{
      padding: 5px;
      font-size: 16px;
      color: #bfbfbf;

      .num{
        span{
          color: @redColor;
          font-size: 24px;
          padding-left: 20px;
        }
      }
      .subject {
        margin-left: 40px;
        font-size: 14px;
      }
    }
    .star{
      padding: 10px 0;
      .star-rating{
        display: inline-block;
        zoom: 1;
       // background: url('../images/ic_rating_s.png') no-repeat;
        background-position-x: 0%;
        background-position-y: 0%;
        width: 55px;
        height: 11px;
        margin: 0 3px 0 0;
        overflow: hidden;
      }
      .allstar25 {
        background-position: 0 -55px;
      }

    }
    .star-range{
      li{
        width: 300px;
        overflow: hidden;
        margin-top: 5px;
        span{
          display: block;
          width: 40px;
          text-align: left;
          height: 18px;
          line-height: 18px;
          float: left;
          font-size: 14px;
          color: #747171;
        }
      }
      .range-box{
        width: 180px;
        margin-right: 20px;
        display: inline-block;
        line-height: 18px;
        height: 18px;
        .range{
          background-color: #f8b551;
          line-height: 10px;
          height: 10px;
          margin-top: 4px;
          display: inline-block;
        }
      }
    }
    .coupon-box{
      position: relative;
      height: 40px;
      .coupon-text{
        position: absolute;
        bottom: 15px;
        left: 240px;
        width: 60px;
        height: 22px;
        font-size: 14px;
        font-style: normal;
        color: #fff;
        line-height: 24px;
        text-align: center;
        background-color: @redColor;
        &:after{
          position: absolute;
          display: table;
          content: '';
          width: 0;
          border: 3px solid transparent;
          border-right-color: transparent;
          border-right-color: @redColor;
          left: -6px;
          top: 9px;
        }
      }
      .original-price{
        color: #bfbfbf;
        font-size: 14px;
      }
      .coupon-price{
        color: @redColor;
        font-size: 28px;
      }
      .icon-rmb{
        color: @redColor;
        font-size: 16px;
      }
    }
    .buy {
      text-align: center;
      margin-top: 15px;
    }
  }
}

.goods-body {
  margin-top: 60px;
  .detail-tab .nav {
    position: relative;
    border-left: 1px solid #e8e8e8;
    overflow: hidden;
    &:before, &after {
      content: " ";
      display: table;
    }
    .item {
      position: relative;
      z-index: 1;
      float: left;
      width: 170px;
      text-align: center;
      a {
        display: block;
        line-height: 40px;
        font-size: 14px;
      }
    }
    .item, .bg {
      border: 1px solid #e8e8e8;
      border-left-width: 1px;
      border-left-style: solid;
      border-left-color: rgb(232, 232, 232);
      border-left: none;
      background-color: #f5f5f5;
      height: 42px;
    }
    .bg {
      position: absolute;
      left: 0;
      width: 100%;
    }
    .active {
      border-top: 3px solid @greenColor;
      background-color: #fff;
      border-bottom: 1px solid #fff;
      color: @greenColor;
    }
  }
  .content {
    width: 800px;
    margin: 0 auto;
    margin-top: 10px;
    img {
      max-width: 100%;
    }
  }
}
#go-top{
  position: fixed;
  bottom: 60px;
  width: 72px;
  height: 72px;
  text-align: center;
  line-height: 1;
  cursor: pointer;
  right: 10px;
  border: 1px solid #eee;
  border-radius: 3px;
  padding: 8px;
  display: none;
  background-color: #fff;
  z-index: 999;
  .text{
    line-height: 20px;
    font-size: 14px;
    margin: 8px auto 0;
    position: relative;
  }
}
.page-list{
  margin: auto;
  text-align: center;
}
@import "category_side";
@import "goods_list";